import { request } from '@pkg/request/src';

export enum Api {
  page = '/couponuser/page',
  writeOffSub = '/coupon2/writeOffSub',
  cancelWriteOffSub = '/coupon2/cancelWriteOffSub',
}


export const writeOffSub = (params) =>
  request.post(
    { url: Api.writeOffSub, params: params },
    {
      errorMessageMode: 'none',
      successMessageMode: 'success',
    },
  );
export const cancelWriteOffSub = (params) =>
  request.post(
    { url: Api.cancelWriteOffSub, params: params },
    {
      errorMessageMode: 'none',
      successMessageMode: 'success',
    },
  );
